<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
  <title>团长分捡单</title>
  <style >
      .shopClass {
        margin-top: 30px;
     }
     table {
         width: 100%;
     }
     table td {
         border: 1px solid #0a0000;
         display: table-cell;
     }
     table th {
         border: 1px solid #0a0000;
     }
  </style>
</head>
<body style = "font-family: SimSun;">
    <div th:each="shopPo,shopPoStat : ${shopPoList}">

        <table class="shopClass"  cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 20%;" th:text="${#dates.format(shopPo.createTime,'yyyy-MM-dd HH:mm')}">2020/03/19 12:00:00</td>
                <td style="width: 22%;" th:text="${shopPo.shopName}"> 测试店铺</td>
                <td style="width: 30%;" th:text="${shopPo.address}">测试地址</td>
                <td style="width: 13%;" th:text="${shopPo.realName}">测试店长</td>
                <td  th:text="${shopPo.mobile}">13585175397</td>
                <td th:v-text="${shopPoStat.last}"></td>
            </tr>
        </table>
        <table  cellspacing="0" cellpadding="0">
            <thead>
                <th style="width: 16%;">收货人姓名</th>
                <th style="width: 15%;">收货人手机号</th>
                <th style="width: 35%;">品名</th>
                <th style="width: 25%;">规格</th>
                <th>数量</th>
            </thead>
            <tbody>
                <tr th:each="po : ${shopPo.poList}">
                    <td th:text="${po.receiver}">平价超市(太平洋保险)田新玲</td>
                    <td th:text="${po.mPhone}">13585175397</td>
                    <td th:text="${po.title}">【限时特价，只此一小时】金锣五花肉半价特卖！金锣精品气调五花肉自然块</td>
                    <td th:text="${po.dimensionValues}">{'单位':'斤'}</td>
                    <td th:text="${po.num}">1</td>
                </tr>
            </tbody>
        </table>
        <div th:if="${not shopPoStat.last}" style="page-break-after:always; border:0px solid black;"></div>
        <div th:if="${not shopPoStat.last}" style="page-break-before:always; border:0px solid black;"></div>
    </div>
</body>
</html>